package client;

import mediator.BusinessMediator;
import participant.*;

public class Client {

    private static BusinessMediator mediator;

    public static void main(String[] args) {
        try {
            mediator = new BusinessMediator();
            ParticipantGUI airLine = new AirlineGUI(mediator);
            ParticipantGUI hotel = new HotelGUI(mediator);
            ParticipantGUI tour = new TourGUI(mediator);
            ParticipantGUI touriststore = new TouriststoreGUI(mediator);
            mediator.register(airLine);
            mediator.register(hotel);
            mediator.register(tour);
            mediator.register(touriststore);
        } catch (Exception ee) {
            ee.printStackTrace();
        }
    }
}
